package com.codeoss.framework.workflow.def;

import com.codeoss.framework.expression.Expression;

public class LineDef extends WorkflowElementDef{
	private String name;
	private NodeDef fromNode;
	private NodeDef toNode;
	private String label;
	private Expression condition;
	private String fromNodeId;
	private String toNodeId;
	private Expression takeEventExpression;
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public NodeDef getFromNode() {
		return fromNode;
	}
	public void setFromNode(NodeDef fromNode) {
		this.fromNode = fromNode;
	}
	public NodeDef getToNode() {
		return toNode;
	}
	public void setToNode(NodeDef toNode) {
		this.toNode = toNode;
	}
	
	public String getLabel() {
		return label;
	}
	public void setLabel(String label) {
		this.label = label;
	}
	public Expression getCondition() {
		return condition;
	}
	public void setCondition(Expression condition) {
		this.condition = condition;
	}
	public String getFromNodeId() {
		return fromNodeId;
	}
	public void setFromNodeId(String fromNodeId) {
		this.fromNodeId = fromNodeId;
	}
	public String getToNodeId() {
		return toNodeId;
	}
	public void setToNodeId(String toNodeId) {
		this.toNodeId = toNodeId;
	}

	public Expression getTakeEventExpression() {
		return takeEventExpression;
	}
	public void setTakeEventExpression(Expression takeEventExpression) {
		this.takeEventExpression = takeEventExpression;
	}
	@Override
	public String getType() {
		// TODO Auto-generated method stub
		return "line";
	}
}
